// 数字枚举
enum Role{
    ADMIN,
    STAFF = 12,
    GUEST
}

// 字符串枚举
enum Message{
    SUCCESS = "成功",
    ERROR = "错误",
    WARNING = "警告"
}

console.log(Message.SUCCESS);
console.log(Message.ERROR);
console.log(Message.WARNING);


console.log(Role.ADMIN);
console.log(Role.STAFF);
console.log(Role.GUEST);

console.log(Role[0]);
console.log(Role[1]);
console.log(Role[2]);

// Role.GUEST = 18; // 无法为“GUEST”赋值，因为它是只读属性

// const my_num3 = 10;
// my_num3 = 20;